package com.grm.service;

import com.grm.model.Product;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Optional;

public interface ProductService {
    Product saveProduct(Product product);

    Optional<Product> findById(String id);

    List<Product> findByName(String name);

    Page<Product> findAll(Pageable pageable);

    void deleteProduct(String id);
}
